﻿@model LastoRevival.Service.Contracts.Models.CreateUserModel

@{ ViewBag.Title = LanguageLoader.GetWord("Register"); }
@{
	this.AddIndexBreadCrumb();
	this.AddCurrentBreadCrumb(LanguageLoader.GetWord("Register"));
}

@Html.ValidationSummary(false)

<div id="register-form-container">

	<div class="heading">@LanguageLoader.GetWord("RegisterInfoText")</div>

	@using (Html.BeginForm("Register", "User", FormMethod.Post))
	{                        
		<span class="form-field" id="register-username">
			<label for="username">@LanguageLoader.GetWord("UsernameLabel")</label>
			@Html.TextBoxFor(m => m.UserName)
			@Html.ValidationMessageFor(m => m.UserName)
		</span>
                        
		<span class="form-field" id="register-password">
			<label for="password">@LanguageLoader.GetWord("PasswordLabel")</label>
			@Html.PasswordFor(m => m.Password)
			@Html.ValidationMessageFor(m => m.Password)
		</span>

		<span class="form-field" id="register-password-confirm">
			<label for="password">@LanguageLoader.GetWord("PasswordRepeatLabel")</label>
			@Html.PasswordFor(m => m.ConfirmPassword)
			@Html.ValidationMessageFor(m => m.ConfirmPassword)
		</span>
                        
		<span class="form-field" id="register-email">
			<label for="email">@LanguageLoader.GetWord("EmailLabel")</label>
			@Html.TextBoxFor(m => m.Email)
			@Html.ValidationMessageFor(m => m.Email)
		</span>

		<span class="button-container">
			<input type="submit" value="@LanguageLoader.GetWord("Register")" onclick="" />
		</span>
                        
   }
</div>